package cn.com.chengmandian.bike.constants;

public enum FaultBillDealCreateType {

    SERVICE(1, "客服"),
    MEMBER(2, "用户");

    private Integer code;
    public Integer getCode(){
        return this.code;
    }

    private String name;
    public String getName(){
        return this.name;
    }

    public static FaultBillDealCreateType getByCode(Integer code){
        if(code == null){
            return null;
        }else{
            FaultBillDealCreateType[] dealCreateTypes = values();
            for(FaultBillDealCreateType dealCreateType :dealCreateTypes){
                if(dealCreateType.getCode().equals(code)){
                    return dealCreateType;
                }
            }
        }
        return null;
    }

    FaultBillDealCreateType(Integer code, String name){
        this.code = code;
        this.name = name;
    }
}
